.project-management {
  padding: 20px;
  height: 100%;
  box-sizing: border-box;
}

.project-management h1 {
  margin-bottom: 20px;
  color: #333;
}

.project-management-content {
  display: flex;
  gap: 20px;
  height: calc(100% - 60px);
}

/* 项目列表 */
.project-list {
  flex: 1;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.project-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-list-header h2 {
  margin: 0;
  color: #333;
}

.project-list-header button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.project-list-header button:hover {
  background: #0056b3;
}

.project-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.project-item:hover {
  border-color: #007bff;
  box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.project-item.selected {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.project-info h3 {
  margin: 0 0 5px 0;
  color: #333;
  font-size: 16px;
}

.project-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.project-actions {
  display: flex;
  gap: 10px;
}

.project-actions button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.project-actions button:first-child {
  background: #28a745;
}

.project-actions button:last-child {
  background: #dc3545;
}

.project-actions button:hover {
  opacity: 0.8;
}

/* 项目详情 */
.project-detail {
  flex: 2;
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.project-detail-header h2 {
  margin: 0 0 10px 0;
  color: #333;
}

.project-detail-header p {
  margin: 0 0 20px 0;
  color: #666;
}

/* 项目成员 */
.project-members {
  flex: 1;
}

.project-members-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-members-header h3 {
  margin: 0;
  color: #333;
}

.project-members-header button {
  background: #007bff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.project-members-header button:hover {
  background: #0056b3;
}

.member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 10px;
}

.member-info {
  display: flex;
  gap: 20px;
}

.member-info span {
  color: #666;
  font-size: 14px;
}

.member-actions {
  display: flex;
  gap: 10px;
}

.member-actions button {
  background: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.member-actions button:first-child {
  background: #28a745;
}

.member-actions button:last-child {
  background: #dc3545;
}

.member-actions button:hover {
  opacity: 0.8;
}

.no-project-selected {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #999;
}

/* 项目表单模态框 */
.project-form-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.project-form-content {
  background: white;
  padding: 30px;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
}

.project-form-content h2 {
  margin-top: 0;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.form-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.form-actions button:first-child {
  background: #6c757d;
  color: white;
}

.form-actions button:last-child {
  background: #007bff;
  color: white;
}

.form-actions button:hover {
  opacity: 0.8;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .project-management-content {
    flex-direction: column;
    height: auto;
  }
  
  .project-list,
  .project-detail {
    width: 100%;
  }
}